<?php 

//获取cookie
if(empty($_COOKIE['testcookie'])){
    echo "没有了";
}else{
    echo "name1=".$_COOKIE['testcookie'];
    echo "<br/>";
    echo "name2=".$_COOKIE['name'];
}
?>